<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% request.setCharacterEncoding("UTF-8"); %>

<%
    String uname = request.getParameter( "username" );
    String passwd = request.getParameter( "password" );
    if( "afang".equals(uname) && "haoshuai".equals(passwd) ) {
        //request.getRequestDispatcher("/WEB-INF/success.jsp?status=登录成功").forward(request,response);
%>
    <jsp:forward page="/WEB-INF/success.jsp">
        <jsp:param name="status" value="登录成功" />
    </jsp:forward>
<%
    } else {
        response.sendRedirect( "/index.html" );
    }
%>


